package com.lixin.springcloud.controller;

import com.lixin.springcloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    OrderService orderService;

    @GetMapping("/consumer/payment/nacos/{id}")
    public String index(@PathVariable("id") Integer id) {
        return orderService.index(id);
    }

}
